<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta content="telephone=no" name="format-detection" />
    <!-- 留作将来统一添加 -->
    <TEMPLATE>${TEMPLATE}</TEMPLATE>
    <title>模板html</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/index.css">
    <link rel="stylesheet" type="text/css" href="../../css/data-flex.min.css">
    <style type="text/css">
        body {
            background-color: #fff;
        }

        .icon-unfinished {
            display: block;
            width: 132px;
            height: 79px;
            margin: 80px auto 0 auto;
        }

        .text {
            font-size: 16px;
            font-weight: 400;
            color: #3F4046;
            line-height: 22px;
            margin-top: 20px;
            text-align: center;
        }

        .btn {
            position: absolute;
            left: 15px;
            right: 15px;
            bottom: 25px;
            height: 44px;
            background: #FD9B43;
            border-radius: 100px;
            font-size: 16px;
            font-weight: 500;
            color: #FFFFFF;
            letter-spacing: 1px;
            line-height: 44px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="vueApp" v-cloak>
        <img src="../../image/ui/unfinished.png" alt="" class="icon-unfinished">
        <div class="text">有{{count}}道题还没有答题<br>全部完成答题才可以提交哦</div>
        <div class="btn" onclick="handleBack()">回去答题</div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/service/service-tool.js"></script>
<script type="text/javascript" src="../../script/service/service-app.js"></script>
<script type="text/javascript" src="../../script/service/service-user.js"></script>
<script type="text/javascript" src="../../script/service/service-logic.js"></script>
<script type="text/javascript" src="../../script/jquery.min.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript">
    // html 的引号一律为双引号(""),js 为单引号('')
    var USER, $S, vm;
    var pageParam = null;
    apiready = function() {
        $S = SERVICE();
        USER = USER();
        console.log(JSON.stringify(api.pageParam) + '=====pageParam');
        pageParam = api.pageParam;
        fnInit();
    };

    // 初始化
    function fnInit() {
        vm = new Vue({
            el: '.vueApp',
            data: {
                count: pageParam.count
            }
        });
    }

    function handleBack() {
        api.closeWin();
        api.sendEvent({
            name: 'back-to-answer'
        });
    }
</script>
</html>
